package com.lilosoft.business.cga.service;

import com.lilosoft.business.cga.dao.CgaCaseMaterialMapper;
import com.lilosoft.business.cga.models.CgaCaseMaterial;
import com.lilosoft.business.cga.models.CgaCaseMaterialExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 小峰
 * Date: 2019-08-28
 * Time: 14:26
 */
@Service
public class CgaCaseMaterialService {
    @Autowired
    private CgaCaseMaterialMapper cgaCaseMaterialMapper;

    public List<CgaCaseMaterial> selectByCaseId(String caseId){
        CgaCaseMaterialExample example= new CgaCaseMaterialExample();
        CgaCaseMaterialExample.Criteria criteria = example.createCriteria();
        criteria.andCaseIdEqualTo(caseId);
        return cgaCaseMaterialMapper.selectByExample(example);
    }
}
